﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;

namespace EF5
{
    public class AchievementEarned
    {
        [Key, Column(Order = 0)]
        public int UserId { get; set; }
        [Key, Column(Order = 1)]
        [Required]
         public int AchievmentId { get; set; }

        public virtual User User { get; set; }
        public virtual List<Achievement> Achievement { get; set; }
    }
}
